package com.codeczx.completeuidemo;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.codeczx.completeuidemo.glide_confilct.SameDirectionInsideActivity;
import com.codeczx.completeuidemo.recyclerview.expand.ExpandActivity;
import com.codeczx.completeuidemo.recyclerview.md.Rv1Activity;
import com.codeczx.completeuidemo.search.OfficialSearchViewActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends AppCompatActivity {
	
	@BindView(R.id.btn_search_popup)
	Button btnSearchPopup;
	@BindView(R.id.btn_rv_in_sv)
	Button btnRvInSv;
	@BindView(R.id.btn_rv1)
	Button btnRv1;
	@BindView(R.id.btn_expand)
	Button btnExpand;
	@BindView(R.id.btn_translucent_status)
	Button btnTranslucentStatus;
	@BindView(R.id.btn_official_search)
	Button btnOfficialSearch;
	@BindView(R.id.btn_same_direction_inside)
	Button btnSameDirectionInside;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		ButterKnife.bind(this);
	}
	
	
	@OnClick({R.id.btn_same_direction_inside,R.id.btn_search_popup, R.id.btn_rv_in_sv, R.id.btn_rv1, R.id.btn_expand, R.id.btn_translucent_status, R.id.btn_official_search})
	public void onViewClicked(View view) {
		switch (view.getId()) {
			case R.id.btn_search_popup:
				startActivity(new Intent(MainActivity.this, SearchPopupActivity.class));
				break;
			case R.id.btn_rv_in_sv:
				startActivity(new Intent(MainActivity.this, RVInSVActivity.class));
				break;
			case R.id.btn_rv1:
				startActivity(new Intent(MainActivity.this, Rv1Activity.class));
				break;
			case R.id.btn_expand:
				startActivity(new Intent(MainActivity.this, ExpandActivity.class));
				break;
			case R.id.btn_translucent_status:
				startActivity(new Intent(MainActivity.this, TranslucentStatusActivity.class));
				break;
			case R.id.btn_official_search:
				startActivity(new Intent(MainActivity.this, OfficialSearchViewActivity.class));
				break;
			case R.id.btn_same_direction_inside:
				startActivity(new Intent(MainActivity.this, SameDirectionInsideActivity.class));
				break;
		}
	}
}
